laravel random value from array

65

laravel random value from array -

$k = array_rand($array);
$v = $array[$k];

Comments

Submit
0 Comments